package org.xandroid.graphic;

/**
 * 点类，一个x，一个y
 * @author Kross(krossford@foxmail.com)
 * @date 2014-3-31 15:43:16
 * */
public class XPoint {
	private float x;
	private float y;
	
	public static XPoint newInstance(float x, float y) {
		XPoint p = new XPoint();
		p.setX(x);
		p.setY(y);
		return p;
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	@Override
	public String toString() {
		return "[" + x + ", " + y + "]";
	}
	
	
}
